import React, { Component } from 'react';
import './App.css';
import Nav from './components/Nav/Nav'
import Home from './views/Home/Home'
import Product from './views/Product/Product'
import { BrowserRouter, Route, Switch } from 'react-router-dom'


class App extends Component {
  render() {
    return (
      <div className="App">
          <BrowserRouter>
              <Switch>
                  <Route path="/" component={Home}> </Route>
                  <Route path="/product" component={Product}></Route>
              </Switch>
          </BrowserRouter>
      </div>
    );
  }
}

export default App;
